package com.sc.nft.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sc.nft.entity.TaskPrize;
import com.sc.nft.entity.TempUserCollectiblesOwned;
import com.sc.nft.entity.UserEquityProps;
import com.sc.nft.mapper.TempUserCollectiblesOwnedMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 朱梦晨
 * @Description:
 * @date 2024-07-24
 */
@Slf4j
@Repository
public class TempUserCollectiblesOwnedDao  extends ServiceImpl<TempUserCollectiblesOwnedMapper, TempUserCollectiblesOwned> {

    public List<TempUserCollectiblesOwned> getTempUserCollectiblesOwnedList(Long exportRecordsId){
        LambdaQueryWrapper<TempUserCollectiblesOwned> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(TempUserCollectiblesOwned::getExportRecordsId,exportRecordsId);
        wrapper.eq(TempUserCollectiblesOwned::getIsDelete, Boolean.FALSE);
        return list(wrapper);
    }

}
